/* CDN 服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
  font-family: 'iconfont';  /* Project id 3648104 */
  src: url('//at.alicdn.com/t/c/font_3648104_eghkz70ktiw.woff2?t=1663148821191') format('woff2'),
  url('//at.alicdn.com/t/c/font_3648104_eghkz70ktiw.woff?t=1663148821191') format('woff'),
  url('//at.alicdn.com/t/c/font_3648104_eghkz70ktiw.ttf?t=1663148821191') format('truetype');
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100vh;
}

body {
  height: 100%;
  width: 100%;
  background-color: #eee;
  background-image: url("../images/background.png");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 600px;
  height: 400px;
  background-color: #fff4cc;
  border-radius: 30px;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.container button {
  height: 80px;
  width: 150px;
  background-color: transparent;
  border: none;
  background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
  border-radius: 10px;
  cursor: pointer;
  color: #ffdb99;
  font-size: 18px;
  position: absolute;
  bottom: 100px;
  transition: all 0.3s;
}

.container button:active {
  transform: scale(0.98);
}

.container .name {
  transition: all 0.3s;
  position: absolute;
  width: 300px;
  top: 100px;
  border: 3px dashed #b3a36b;
  padding: 20px 30px;
  font-size: 24px;
  color: #b3a36b;
  text-align: center;
  overflow: hidden;
}

.container .name.active {
  border: none;
  padding: 30px 30px;
}

.container .name.active .left {
  width: 100%;
  height: 4px;
  left: -100%;
  top: 0;
  animation: left 1s linear infinite;
  position: absolute;
  background: hotpink;
}

@keyframes left {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

.container .name.active .top {
  width: 4px;
  height: 100%;
  right: 0;
  top: -100%;
  animation: top 1s linear infinite 0.25s;
  position: absolute;
  background: hotpink;
}

@keyframes top {
  0% {
    top: -100%;
  }
  50%, 100% {
    top: 100%;
  }
}

.container .name.active .right {
  width: 100%;
  height: 4px;
  right: -100%;
  bottom: 0;
  animation: right 1s linear infinite 0.5s;
  position: absolute;
  background: hotpink;
}

@keyframes right {
  0% {
    right: -100%;
  }
  50%, 100% {
    right: 100%;
  }
}

.container .name.active .bottom {
  width: 4px;
  height: 100%;
  left: 0;
  bottom: -100%;
  animation: bottom 1s linear infinite 0.75s;
  position: absolute;
  background: hotpink;
}

@keyframes bottom {
  0% {
    bottom: -100%;
  }
  50%, 100% {
    bottom: 100%;
  }
}


/* 抽屉部分 */
.drawerContainer {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: all 0.3s;
  display: none;
}

.drawerContainer .drawer {
  width: 30%;
  height: 100%;
  position: absolute;
  right: 0;
  background-color: white;
  animation: outer .3s forwards;
  box-shadow: 0 8px 10px -5px rgba(0, 0, 0 ,0.2), 0 16px 24px 2px rgba(0 ,0 ,0 , 0.14), 0 6px 30px 5px rgba(0, 0, 0,  0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.drawerContainer.active .drawer {
  animation: inter .3s forwards;
}

.drawerContainer.active {
  display: block;
  background-color: rgba(0,0,0,0.5);

}



.drawerContainer.active ~ .theButton {
  display: block;
  right: 30%;
  background-image: linear-gradient(135deg, #cdc4dc 0%, #a472a3 50%, #f1e297 100%);
}

.drawerContainer.active ~ .theButton::before {
  content: '\eb09';
}

.theButton {
  position: absolute;
  top: 100px;
  right: 0;
  height: 40px;
  width: 50px;
  padding: 10px 20px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  background-color: transparent;
  border: none;
  color: #3498db;
  background-image: linear-gradient(135deg, #4d4a54 0%, #332433 50%, #fbc2eb 100%);
  cursor: pointer;
  transition: all 0.3s;
}
.theButton::before {
  font-family: iconfont;
  content: '\eb0a';
  font-size: 24px;
  text-align: center;
  position: relative;
  right: 4px;
}

.theButton:active::before {
  color: #ff2189;
}

@keyframes inter {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes outer {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}


.upload {
  display: flex;
  flex-direction: column;
  margin-top: 50px;
  transform: translateX(-50px);
}

.upload button {
  cursor: pointer;
  padding: 9px 15px;
  width: 100px;
  color: #fff;
  font-size: 12px;
  background-color: #409eff;
  outline: none;
  border: 1px solid #409eff;
  border-radius: 4px;
}
.upload button:active {
  background-color: #66b1ff;
}
.upload span {
  font-size: 12px;
  color: #606266;
  margin-top: 7px;
  display: block;
}
.upload div {
  color: #606266;
  overflow: hidden;
  transition: color .3s;
  white-space: nowrap;
  display: none;
}

.upload div span {
  position: relative;
  top: -6px;
}

.upload svg {
  margin-right: 4px;
  position: relative;
  top: 1px;
}

.nameList {
  position: relative;
  width: 350px;
  bottom: -250px;
}

.nameList .nameListHeader {
  display: flex;
  font-size: 14px;
  color: #989898;
  border: 1px dashed red;
  padding: 5px 10px 5px 6px;
  justify-content: space-between;
  align-items: center;
}

.nameListHeader2 i {
  position: relative;
  /*top: -2px;*/
  cursor: pointer;
}

.nameList ul {
  height: 0;
  transition: all 0.3s;
  max-height: 300px;
  overflow-y: scroll;
  background-color: #ececec;
  display: flex;
  flex-wrap: wrap;
}

.nameList.active ul {
  height: auto;
  max-height: 300px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  padding: 20px 20px;
}

.nameList ul::-webkit-scrollbar { width: 0 !important }
.nameList ul li {
  list-style: none;
  margin: 3px 4px;
  padding: 2px 8px 2px 10px;
  background-color: #ecf5ff;
  border-radius: 5px;
  color: #409eff;
  font-size: 12px;
  display: flex;
  align-items: center;
  line-height: 30px;
}

.nameList ul li::after {
  content: 'x';
  width: 16px;
  height: 16px;
  display: block;
  /*background-color: red;*/
  margin-left: 4px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  color: #989898;
  cursor: pointer;
}

.nameList ul li:hover::after {
  content: 'x';
  background-color: #2c91f5;
  color: #eee;
}

.nameList ul span {
  width: 30px;
  margin: 3px 4px;
  padding: 2px 8px 2px 10px;
  background-color: #ecf5ff;
  border-radius: 5px;
  color: #409eff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
